package com.mes.service.jy;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.hy.WorkMapper;
import com.mes.dao.jy.AllwMepper;
import com.mes.entity.hy.Work1;
import com.mes.entity.jy.Queryjy;

@Service
@Transactional
public class productChartServiseImpl implements productChartServise {

	@Resource
	private WorkMapper workMapper;
	
	@Resource
	private AllwMepper allwMepper;
	
	@Override
	public List<Work1> selectAllWork(Queryjy queryjy) {
		return workMapper.selectAllWork(queryjy);
	}

	@Override
	public Work1 selectNGood(Queryjy queryjy) {
		return workMapper.selectNGoodjyy(queryjy);
	}

	@Override
	public List<Work1> selectAllWorkPagine(Queryjy queryjy) {
		return allwMepper.selectAllWorkPagine(queryjy);
	}

	@Override
	public int countAllWork(Queryjy queryjy) {
		return allwMepper.countAllWork(queryjy);
	}
	

}
